package com.anhry.app.safety.util;

import java.io.Serializable;

/**
 * 2012-04-08
 * remark: 记录在线用户
 * author: anhry
 *
 */
public class OnlineUser implements Serializable {

	private static final long serialVersionUID = -3872674119283416473L;

	private String address;

	private String id;

	private String name;
	
	private String loginIP;
	
	private String logintime;
	
	private String usertype;
	
	private String userUnit;
	
	private String userDept;
	
	private String userStreet;

	public String getUserDept() {
		return userDept;
	}

	public void setUserDept(String userDept) {
		this.userDept = userDept;
	}

	public String getUserUnit() {
		return userUnit;
	}

	public void setUserUnit(String userUnit) {
		this.userUnit = userUnit;
	}

	public boolean equals(Object obj) {
		if (obj == null || !(obj instanceof OnlineUser)) {
			return false;
		}
		if (this.id != null && this.id.equals(((OnlineUser) obj).getId())) {
			return true;
		}
		return false;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getLogintime() {
		return logintime;
	}

	public void setLogintime(String logintime) {
		this.logintime = logintime;
	}
	
	public String getUsertype() {
		return usertype;
	}

	public void setUsertype(String usertype) {
		this.usertype = usertype;
	}

	public String getUserStreet() {
		return userStreet;
	}

	public void setUserStreet(String userStreet) {
		this.userStreet = userStreet;
	}

	public String getLoginIP() {
		return loginIP;
	}

	public void setLoginIP(String loginIP) {
		this.loginIP = loginIP;
	}

}
